/// code : 1
/// data : {"id":2,"userName":"zhaoxiaoqiang","nickName":"����ǿ","roleId":1,"classId":1}

class LoadDto {
  int code;
  String msg;
  DataBean data;

  static LoadDto fromMap(Map<String, dynamic> map) {
    if (map == null) return null;
    LoadDto loaddtoBean = LoadDto();
    loaddtoBean.code = map['code'];
    loaddtoBean.msg = map['msg'];
    loaddtoBean.data = DataBean.fromMap(map['data']);
    return loaddtoBean;
  }

  Map toJson() => {
    "code": code,
    "msg": msg,
    "data": data,
  };
}

/// id : 2
/// userName : "zhaoxiaoqiang"
/// nickName : "����ǿ"
/// roleId : 1
/// classId : 1

class DataBean {
  int id;
  String userName;
  String nickName;
  int roleId;
  int classId;

  static DataBean fromMap(Map<String, dynamic> map) {
    if (map == null) return null;
    DataBean dataBean = DataBean();
    dataBean.id = map['id'];
    dataBean.userName = map['userName'];
    dataBean.nickName = map['nickName'];
    dataBean.roleId = map['roleId'];
    dataBean.classId = map['classId'];
    return dataBean;
  }

  Map toJson() => {
    "id": id,
    "userName": userName,
    "nickName": nickName,
    "roleId": roleId,
    "classId": classId,
  };
}